package ${packageName}.service;

import ${packageName}.model.${entityName};
import ${packageName}.repository.${entityName}Repository;
import ${packageName}.vo.request.${entityName}VoRequest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ${entityName}Service {
@Autowired
${entityName}Repository ${entityName?uncap_first}Repository;

public ${entityName} save(${entityName}VoRequest ${entityName?uncap_first}VoRequest){
return null;
}
public ${entityName} update(${entityName}VoRequest ${entityName?uncap_first}VoRequest){
return null;
}

public ${entityName} findOne(Long id) {
return ${entityName?uncap_first}Repository.findOne(id);
}

public void delete(Long id) {
${entityName?uncap_first}Repository.delete(id);
}

public void delete(${entityName} ${entityName?uncap_first}) {
${entityName?uncap_first}Repository.delete(${entityName?uncap_first});
}
}

